package com.demo.eshop.pdetail.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import redis.clients.jedis.JedisCluster;

/**
 * @author: E20160504
 * @date: 2018/10/24
 * @desc
 */

@Repository
public class RedisDao {

    @Autowired
    private JedisCluster jedisCluster;

    public void set(String key, String value){
        jedisCluster.set(key,value);
    }

    public String get(String key){
        return jedisCluster.get(key);
    }

    public void del(String key){
        jedisCluster.del(key);
    }
}
